import http from '@/utils/http'


// 获取详情接口
export const getCheckInfoAPI = (userId,addressId) => {
    return http.get('/member/order/pre', {
        params: {
            userId, // 通过查询参数传递 userid
            addressId
        }
    });
};

// 创建订单
export const createOrderAPI = (data) => {
    return http.post('/member/order',data)
}
// 获取用户地址列表接口
export const getUserAddressesAPI = (userId) => {
    return http.get('/member/address/list', {
        params: {
            userId // 通过查询参数传递 userid
        }
    });
};